﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Mini_Project
{
    class pair : IEqualityComparer<pair>
    {
        private double first;
        private double second;

        public pair(double f, double s)
        {
            this.first = f;
            this.second = s;
        }

        public double getFirst()
        {
            return this.first;
        }

        public double getSecond()
        {
            return this.second;
        }

        public bool Equals(pair x, pair y)
        {
            if (x.getFirst() == y.getFirst() && x.getSecond() == y.getSecond())
                return true;
            return false;
        }

        public int GetHashCode(pair obj)
        {
            return Convert.ToInt16(obj.getFirst());
        }

    }
}
